package com.whmall.service.crm.provider;

import com.whmall.service.crm.api.OpenPlatformAppApi;
import com.whmall.service.crm.entity.dto.openapi.OpenPlatformAppQueryReqDTO;
import com.whmall.service.crm.entity.dto.openapi.OpenPlatformAppRspDTO;
import com.whmall.service.crm.module.openapi.service.OpenPlatformAppService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.List;

@DubboService(interfaceClass = OpenPlatformAppApi.class)
@RequiredArgsConstructor
public class OpenPlatformAppApiProvider implements OpenPlatformAppApi {

    private final OpenPlatformAppService openPlatformAppService;

    @Override
    public OpenPlatformAppRspDTO queryInfoByAppID(String appId) {
        return openPlatformAppService.queryInfoByAppID(appId);
    }

    @Override
    public List<OpenPlatformAppRspDTO> selectBy(OpenPlatformAppQueryReqDTO queryReqDTO) {
        return openPlatformAppService.selectBy(queryReqDTO);
    }
}
